/**
  ******************************************************************************
  * @file    usart.h
  * @brief   This file contains all the function prototypes for
  *          the usart.c file
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; Copyright (c) 2021 STMicroelectronics.
  * All rights reserved.</center></h2>
  *
  * This software component is licensed by ST under BSD 3-Clause license,
  * the "License"; You may not use this file except in compliance with the
  * License. You may obtain a copy of the License at:
  *                        opensource.org/licenses/BSD-3-Clause
  *
  ******************************************************************************
  */

#ifndef __USART_H__
#define __USART_H__

#ifdef __cplusplus
extern "C" {
#endif


#include "main.h"





extern UART_HandleTypeDef huart1;
extern UART_HandleTypeDef huart2;





void MX_USART1_UART_Init(void);
void MX_USART2_UART_Init(void);



void SysPrintf(const char *fmt, ...);
void User_UART_Sent(uint8_t val);
void SendDataToNBModule(uint8_t *buf,uint8_t len);
u32 atou(s8 *str);
s32 RtspGetStringContent(s8 *buf, s8 *starttitle,s8 *endtitle, s8 *content);
uint32_t UtilGetIntFlag(uint8_t *buf,uint8_t*startflag,uint8_t*endflag);
uint8_t	UtilGetStringFlag(uint8_t *buf,uint8_t*startflag,uint8_t*endflag,uint8_t*content);



#ifdef __cplusplus
}
#endif

#endif 


